<?php

class AmbientesController extends Zend_Controller_Action
{

    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
		$fotosModel = new Application_Model_Galeria();
		
		$this->view->fotos = $fotosModel->fetchAll(
			$fotosModel->select()->where('excluido = 0')
									->where('galeria = 1')
					);
    }


}

